<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>江苏省师范类专业认证系统管理主页</title>
    <meta name="keywords" content="江苏省师范类专业认证系统管理主页">
    <meta name="description" content="江苏省教育评估院,师范类专业,认证系统,管理主页">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/auth_step.css"/>
	<link rel="stylesheet" href="../../models/admin/css/examInfo.css"/>
    <script src="../../plugin/angular/angular.min.js"></script>
    <script src="../../models/admin/js/examInfo.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script>
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>   
</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
		<div leftaside></div>
		<aside>
			<div class="top-bar"><span>专业技能测试试题库管理</span></div>
			<section class="row" style="padding:0 25px; margin-top:10px;">
				<div ng-controller="examInfoList">
					<div class="whole-cover" ng-hide="isAddM"></div>
					<div class="add-form" ng-hide="isAddM">
						<div>添加试题</div>
						<div><span>技能类型：</span>
						<input type="radio" name="expertType" ng-value="true" id="hexpert" ng-model="isHExpert" ng-click="clearInfo()"/>
						<label for="hexpert">必测技能</label>
						<input type="radio" name="expertType" ng-value="false" id="mlexpert" ng-model="isHExpert" ng-click="clearInfo()"/>
						<label for="mlexpert">选测技能</label></div>
						<div>
							<span>编号：</span>
							<input type="text" ng-model="number"  placeholder="请输入编号"/>
						</div>
						<div>
							<span>专业：</span>
							<select class="fl select01" ng-model="majorId" placeholder="" ng-change="queryTask()">
								<option value="">请选择专业</option>
								<option value="0">学前教育</option>
								<option value="1">小学教育</option>
								<option value="2">中学教育</option>
							</select>
						</div>
						<div ng-show="isHExpert">
							<span>必测专业技能：</span>
							<select class="fl select01" ng-model="taskId" placeholder="" ng-change="getRemark()">
								<option value="">请选择必测专业技能</option>
								<option value="{{arraylist.pid+','+(arraylist.remark==''?0:arraylist.remark)}}" ng-repeat="arraylist in selList">{{arraylist.name}}</option>
							</select>
						</div>
						<div ng-hide="isHExpert">
							<span>选测专业技能：</span>
							<select class="fl select01" ng-model="taskId00" placeholder="" ng-change="getRemark()" >
								<option value="">请选择选测专业技能</option>
								<option value="{{arraylist.pid+','+(arraylist.remark==''?0:arraylist.remark)}}" ng-repeat="arraylist in xcList">{{arraylist.name}}</option>
							</select>
						</div>
						<div ng-hide="isKemu">
							<span>科目：</span>
							<select ng-show="isShuoke" class="fl select01" ng-model="subject" placeholder="">
								<option value="">请选择科目</option>
								<option value="2">美术</option>
								<option value="3">数学</option>
								<option value="4">体育 </option>
								<option value="5">音乐</option>
								<option value="6">英语 </option>
								<option value="7">语文</option>
								<option value="8">地理</option>
								<option value="10">历史 </option>
								<option value="11">信息技术</option>
								<option value="13">政治</option>
								<option value="9">化学</option>
								<option value="12">生物 </option>
								<option value="1">物理 </option>
							</select>
							<select ng-hide="isShuoke||isSkill"  class="fl select01" ng-model="subject" placeholder="">
								<option value="">请选择科目</option>
								<option value="14">初中化学</option>
								<option value="15">初中生物 </option>
								<option value="16">初中物理</option>
								<option value="17">高中化学</option>
								<option value="18">高中生物 </option>
								<option value="19">高中物理</option>
							</select>
							<select ng-show="isSkill"  class="fl select01" ng-model="subject" placeholder="">
								<option value="">请选择科目</option>
								<option value="5">音乐</option>
								<option value="4">体育 </option>
								<option value="2">美术</option>
							</select>
						</div>
						<div>
							<span>试题上传：</span>
							<div class="uploade"><span ng-bind="fileName">上传</span><input type="file" ngf-select="uploadFiles($file, $invalidFiles,'1')" ngf-max-height="1000" ngf-max-size="100MB"/></div>	
						</div>
						<div><div class="button" ng-click="addFirstZ()">确认</div><div class="button" ng-click="cancelAddM()">取消</div></div>
					</div>
					<div class="">
					</div>
					<div class="top-check clearfix">
						<select type="text" class="fl select01 mr15" ng-change="myFunc()" ng-model="sel" placeholder="">
							<option value="">选择查询条件</option>
							<!-- <option value="0">按专业技能查询</option> -->
							<option value="1">按专业查询</option>
							<option value="2">按学科查询</option>
						</select>	
						
											
						<select class="fl select01" ng-hide="isSel02" ng-model="major01" placeholder="" ng-change="queryAllTaskByMajor()">
							<option value="">请选择专业</option>
							<option value="0">学前教育</option>
							<option value="1">小学教育</option>
							<option value="2">中学教育</option>
						</select>
						<select class="fl select01" ng-hide="isSel04" ng-model="taskId01" placeholder="" >
							<option value="">请选择专业技能</option>
							<option value="{{arraylist.pid}}" ng-repeat="arraylist in taskList">{{arraylist.name}}</option>
						</select>	
						<select type="text" class="fl select01" ng-hide="isSel03" ng-model="subject01" placeholder="">
							<option value="">按学科查询</option>
							<option value="2">美术</option>
							<option value="3">数学</option>
							<option value="4">体育 </option>
							<option value="5">音乐</option>
							<option value="6">英语 </option>
							<option value="7">语文</option>
							<option value="8">地理</option>
							<option value="10">历史 </option>
							<option value="11">信息技术</option>
							<option value="13">政治</option>
							<option value="9">化学</option>
							<option value="12">生物 </option>
							<option value="1">物理 </option>
							<option value="14">初中化学</option>
							<option value="15">初中生物 </option>
							<option value="16">初中物理</option>
							<option value="17">高中化学</option>
							<option value="18">高中生物 </option>
							<option value="19">高中物理</option>
						</select>
						<div class="fl btn-query btn ml15" ng-click="queryMain()">查询</div>
						<div class="fr btn-add btn mr15" ng-click="addM()">添加试题</div>
					</div>
					<div class="list-content">
						<div class="cooleList title">
							<div class="detail-part">
								<ul>
									<li style="width:15%;">编号</li>
									<li>专业</li>
									<li>专业技能</li>
									<li style="width:30%;">试题名</li>
									<li style="width:15%;">学科</li>									
								</ul>
							</div>
							<div class="detail-bot">操作</div>
							
						</div>
						<div ng-repeat="arraylist in list" class="cooleList" ng-if="list.length > 0">
							<div class="detail-part">
								<ul>
									<li style="width:15%;" ng-bind="arraylist.number?arraylist.number:'-'" title="{{arraylist.number}}">编号</li>
									<li ng-bind="arraylist.majorName?arraylist.majorName:'-'" title="{{arraylist.majorName}}">专业</li>
									<li ng-bind="arraylist.taskName?arraylist.taskName:'-'" title="{{arraylist.taskName}}">专业技能</li>
									<li style="width:30%;" ng-bind="arraylist.name?arraylist.name:'-'" title="{{arraylist.name}}">试题名</li>
									<li style="width:15%;" ng-bind="arraylist.subjectName?arraylist.subjectName:'-'" title="{{arraylist.subjectName}}">学科</li>
								</ul>
							</div>
							<div class="detail-bot">
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="turnToDownLoad(arraylist.pid)">下载</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="delCollect(arraylist.pid)">删除</span>
							</div>
						</div>
						<div ng-if="list.length > 0" style="padding: 10px">共{{totalCount}}条</div>
						<div class="cooleList" style="text-align: center;padding:10px" ng-if="list.length == 0">
							暂无相关数据
						</div>
					</div>
					<section ng-controller="pageDemo" class="col-md-7 pull-right" ng-show = "totalCount > pageSize">
						<pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
					</section>
				</div>
		    </section>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
